package org.chen.common.upload;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("background_resource")
public class BackgroundResource {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    
    private String name;
    
    private String url;
    
    @TableField("image_key")
    private String imageKey;

    private String localPath;    // 本地文件路径

    private Long size;       // 文件大小
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}